#ifndef  _SQL_ZSCG_H_
#define  _SQL_ZSCG_H_
#include "sqlite3.h"

typedef struct data
{

	char SN[64];
	char TIME[64];
	char TEMP[64];
}st_data;



int offset;
int print_callback_num(void *para, int num,char *value[], char *name[]);
int callback_first(void *para, int num,char *value[], char *name[]);
int sqlite_save(sqlite3 *db, char *data);
int sqlite_select_one(sqlite3 *db, sqlite3_callback callback, st_data para[], int ID);
int sqlite_select_num(sqlite3 *db, int *times);
int sqlite_del(sqlite3 *db);
int sql_create(sqlite3 *db);
//int sqlite_insert(sqlite3 *db, st_data para, int times);

#endif
